﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Globalization;
using Microsoft.VisualStudio.TestTools.UnitTesting;


namespace UnitTest {
    [TestClass]
    public class UnitTest1 {
        [TestMethod]
        public void TestMethod1(){
            const string strRefind = "/question/44353221";
            string id = strRefind.Substring(strRefind.LastIndexOf('/') + 1);
            Console.WriteLine(id);
        }

        [TestMethod]
        public void TestMethod2(){
            string[] tmpstr = new string[10];
            for (int i = 0; i < 10; i++){
                tmpstr[i] = i.ToString();
            }

            List<string> strlist = (from str in tmpstr select str).ToList();
            
        }
    }
}
